﻿<phone:PhoneApplicationPage 
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    x:Class="ActivityTracker.Views.TimeSpentMenu"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:local="clr-namespace:ActivityTracker"
       xmlns:atl="clr-namespace:ActivityTracker.Library;assembly=ActivityTracker.Library"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    local:TiltEffect.IsTiltEnabled="True">


    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Foreground="White" Text="ACTIVITY TRACKER - TIME ALLOCATION" Style="{StaticResource PhoneTextNormalStyle}"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock x:Name="PageTitle" Foreground="White" Text="chart menu" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
                <Image Margin="40,10,0,0" Source="/Images/appbar.questionmark.rest.png" MouseLeftButtonDown="HelpImage_MouseLeftButtonDown" Width="48" Height="48" />
            </StackPanel>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            <ListBox Grid.Row="0" x:Name="ListBoxTimeSpentChartMenu" SelectionChanged="ListBoxTimeSpentChartMenu_SelectionChanged">
                <TextBlock Text="daily" Foreground="White" Height="120" VerticalAlignment="Center" FontSize="36" Style="{StaticResource PhoneTextLargeStyle}"/>
                <TextBlock Text="monthly" Foreground="White" Height="120" VerticalAlignment="Center" FontSize="36" Style="{StaticResource PhoneTextLargeStyle}"/>
                <TextBlock Text="yearly" Foreground="White" Height="120" VerticalAlignment="Center" FontSize="36" Style="{StaticResource PhoneTextLargeStyle}"/>
            </ListBox>
            <StackPanel Orientation="Vertical" Grid.Row="1">
          
                <my:AdControl  Margin="0,0,0,0" Height="90" HorizontalAlignment="Center" x:Name="adControl2" VerticalAlignment="Top" Width="480" ApplicationId="c8736437-6eec-403e-b9d4-333c4e6794d1" AdUnitId="28360" IsAutoRefreshEnabled="True" BorderBrush="Transparent"/>
            </StackPanel>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
